package com.lhyu.mall.service;

import com.lhyu.mall.domain.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IIndexService {
    List<IndexDomain> quaryContent();
    List<IndexMallNavNewhotItemDomain> mallNavNewhotItem();
    List<IndexImgUrlsDomain> indexImgUrls();
    List<IndexClassBigDomain> indexClassBig();

    List<ClassficationDomain> classfication();

    List<CartDomain> queryCart();

    List<ComponentGoodsDomain> queryComponentGoods(String viewId);

    List<MessageDomain> queryMessage(String viewId);
//加入购物车
    void insertGoods(AddGoodsDomain addGoods);
//查询购物车中是否已经有这个商品
    List<AddGoodsDomain> isGoodInCart(String goodId);
//若购物车存在该商品，则更改数量+1
    void updateGoodInCart(AddGoodsDomain upGoods);
}
